package main

import (
	"fmt"
	"gitee.com/masaichi/mastool/masqiniu"
)

func main() {
	//初始化
	var (
		key    string
		secret string
		bucket string
		domain string
	)
	localFile := "123.jpg"
	savePath := "/images/123.jpg"
	qiniuClient := masqiniu.NewQiniuClient(key, secret, bucket, domain)
	saveUrlWithHost, err := qiniuClient.Upload(localFile, savePath)
	if err != nil {

	}
	fmt.Printf("save:%s", saveUrlWithHost)
}
